#ifndef _MyView_h_
#define _MyView_h_

#include <QGraphicsView>

// ======================================================================
class MyView: public QGraphicsView {
Q_OBJECT
public:
    MyView(QGraphicsScene* pScene, QWidget* pwgt = 0)
        : QGraphicsView(pScene, pwgt)
    {
    }

public slots:
    void slotZoomIn()
    {
        scale(1.1, 1.1);

    }

    void slotZoomOut()
    {
        scale(1 / 1.1, 1 / 1.1);

    }

    void slotRotateLeft()
    {
        rotate(20);

    }

    void slotRotateRight()
    {
        rotate(-25);

    }

    void cvet()
    {
        setBackgroundBrush(QBrush(Qt::black),QBrush(Qt::yellow));

    }


};
#endif  //_MyView_h_
